From cc910abb427b10c445cecb7321be9135ea337f9d Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 30 Oct 2001 14:15:01 +0000 Subject: [PATCH] Update the IM spot location here, if text was invalidated in the visible 2001-10-30 Havoc Pennington * gtk/gtktextview.c (changed_handler): Update the IM spot location here, if text was invalidated in the visible area, because the scroll offset doesn't normally change in that case, and the mark isn't set, just implicitly moved over as text is added/removed --- ChangeLog | 7 +++++++ ChangeLog.pre-2-0 | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-2 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ gtk/gtktextview.c | 2 ++ 8 files changed, 51 insertions(+) diff --git a/ChangeLog b/ChangeLog index 39fb506f94..e313e6392c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2001-10-30 Havoc Pennington + + * gtk/gtktextview.c (changed_handler): Update the IM spot location + here, if text was invalidated in the visible area, because the + scroll offset doesn't normally change in that case, and the mark + isn't set, just implicitly moved over as text is added/removed + Mon Oct 29 19:18:35 2001 Jonathan Blandford * gtk/gtkseparatormenuitem.c: Code cleanup. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 39fb506f94..e313e6392c 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +2001-10-30 Havoc Pennington + + * gtk/gtktextview.c (changed_handler): Update the IM spot location + here, if text was invalidated in the visible area, because the + scroll offset doesn't normally change in that case, and the mark + isn't set, just implicitly moved over as text is added/removed + Mon Oct 29 19:18:35 2001 Jonathan Blandford * gtk/gtkseparatormenuitem.c: Code cleanup. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 39fb506f94..e313e6392c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2001-10-30 Havoc Pennington + + * gtk/gtktextview.c (changed_handler): Update the IM spot location + here, if text was invalidated in the visible area, because the + scroll offset doesn't normally change in that case, and the mark + isn't set, just implicitly moved over as text is added/removed + Mon Oct 29 19:18:35 2001 Jonathan Blandford * gtk/gtkseparatormenuitem.c: Code cleanup. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 39fb506f94..e313e6392c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +2001-10-30 Havoc Pennington + + * gtk/gtktextview.c (changed_handler): Update the IM spot location + here, if text was invalidated in the visible area, because the + scroll offset doesn't normally change in that case, and the mark + isn't set, just implicitly moved over as text is added/removed + Mon Oct 29 19:18:35 2001 Jonathan Blandford * gtk/gtkseparatormenuitem.c: Code cleanup. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 39fb506f94..e313e6392c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +2001-10-30 Havoc Pennington + + * gtk/gtktextview.c (changed_handler): Update the IM spot location + here, if text was invalidated in the visible area, because the + scroll offset doesn't normally change in that case, and the mark + isn't set, just implicitly moved over as text is added/removed + Mon Oct 29 19:18:35 2001 Jonathan Blandford * gtk/gtkseparatormenuitem.c: Code cleanup. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 39fb506f94..e313e6392c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +2001-10-30 Havoc Pennington + + * gtk/gtktextview.c (changed_handler): Update the IM spot location + here, if text was invalidated in the visible area, because the + scroll offset doesn't normally change in that case, and the mark + isn't set, just implicitly moved over as text is added/removed + Mon Oct 29 19:18:35 2001 Jonathan Blandford * gtk/gtkseparatormenuitem.c: Code cleanup. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 39fb506f94..e313e6392c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +2001-10-30 Havoc Pennington + + * gtk/gtktextview.c (changed_handler): Update the IM spot location + here, if text was invalidated in the visible area, because the + scroll offset doesn't normally change in that case, and the mark + isn't set, just implicitly moved over as text is added/removed + Mon Oct 29 19:18:35 2001 Jonathan Blandford * gtk/gtkseparatormenuitem.c: Code cleanup. diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 39d5d740fe..51d826410b 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -2886,6 +2886,8 @@ changed_handler (GtkTextLayout *layout, if (text_view->bottom_window) text_window_invalidate_rect (text_view->bottom_window, &redraw_rect); + + gtk_text_view_update_im_spot_location (text_view); } } -- 2.30.2